package com.acme.cli;

import com.acme.domain.account.Account;
import com.acme.domain.account.CheckingAccount;
import com.acme.domain.account.SavingAccount;
import com.acme.domain.bank.Client;
import com.acme.domain.bank.Gender;

public class myBankApplication {

    public static void main(final String[] args){
        Client client1 = new Client("Ivan", Gender.MALE);
        Client client2 = new Client("Ivan", Gender.MALE);

        System.out.println(client1 == client2);
        System.out.println(client1.equals(client2));

        client1.addAccount(new SavingAccount(1,10000));
        client2.addAccount(new SavingAccount(1,10000));

        System.out.println(client1.hashCode());
        System.out.println(client2.hashCode());
        client1.addAccount(new CheckingAccount(2,5000, 2000));
        System.out.println(client1.hashCode());

        System.out.println(client1.toString());
        System.out.println(client2.toString());
    }



}
